package iechecs;

import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Map.Entry;

public class AFonction<A, B> extends HashMap<A, B>
{

    private static final long serialVersionUID = -2825819478353561956L;
    private Map<A, B> instance;

    public AFonction()
    {
        instance = new HashMap<A, B>();
    }

    public Entree<A, B> getEntree(Entry<A, B> it)
    {
        return new Entree<A, B>(it);
    }

    public Iterator<Entry<A, B>> iterator()
    {
        return super.entrySet().iterator();

    }

    public AIterator<A, B> iterateur()
    {
        return new AIterator<A, B>(this);
    }
}
